package xyz.syyrjx.blog._enum;

/**
 * @author 大地崩坏苍蝇兽
 * @date 2023/12/27 10:44
 * @description 状态枚举
 * @since v0.0.1
 */
public enum State {

    DELETE_STATE(0,"删除"),
    DRAFT_STATE(1,"草稿"),
    NORMAL_STATE(2,"正常");


    // 状态码
    private Integer code;
    // 描述
    private String describe;

    State(Integer code, String describe) {
        this.code = code;
        this.describe = describe;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
}
